<!DOCTYPE html>
<html lang="zh-CN">
<head>
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta charset="UTF-8">
    <title>自我介绍</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }

        header {
            background-color: #4CAF50;
            color: white;
            text-align: center;
            padding: 1em 0;
        }

        main {
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background-color: white;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        section {
            margin-bottom: 20px;
        }

        h2 {
            color: #4CAF50;
            border-bottom: 2px solid #4CAF50;
            padding-bottom: 5px;
        }

        ul {
            list-style-type: disc;
            margin-left: 20px;
        }

        a {
            color: #4CAF50;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }

        .profile-container {
            display: flex;
            align-items: flex-start;
        }

        .profile-avatar {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            margin-right: 20px;
        }

        form {
            display: flex;
            flex-direction: column;
        }

        label {
            margin-top: 10px;
        }

        input, textarea {
            padding: 10px;
            margin-top: 5px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        button {
            margin-top: 20px;
            padding: 10px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        button:hover {
            background-color: #45a049;
        }

        footer {
            text-align: center;
            padding: 0;
            background-color: #4CAF50;
            color: white;
            position: fixed;
            width: 100%;
            bottom: 0;
        }
    </style>
</head>
<body>
<header>
    <h1>自我介绍</h1>
</header>
<main>
    <section id="basic-info">
        <h2>基本信息</h2>
        <div class="profile-container">
            <img src="pyy.jpg" alt="头像" class="profile-avatar">
            <ul>
                <li>姓名：刘维鑫</li>
                <li>班级：计科233</li>
                <li>学号：2023051100</li>
            </ul>
        </div>
    </section>

    <section id="professional-background">
        <h2>专业能力</h2>
        <p>学习过C语言, Python, Java</p>
    </section>

    <section id="interests">
        <h2>兴趣与爱好</h2>
        <ul>
            <li>足球</li>
            <li>Cities: Skylines</li>
        </ul>
    </section>

    <section id="interaction">
        <h2>联系方式</h2>
        <p>您可以通过以下方式与我联系：</p>
        <ul>
            <li>邮箱：3059119581@qq.com</li>
            <li>微信：123456789abc</li>
        </ul>
    </section>

    <section id="contact">
        <h2>留言板：</h2>
        <p>有事请留言</p>
        <form id="contactform">
            <label for="name">姓名:</label>
            <input type="text" id="name" name="name" required><br><br>

            <label for="email">邮箱:</label>
            <input type="email" id="email" name="email" required><br><br>

            <label for="message">留言:</label><br>
            <textarea id="message" name="message" rows="4" cols="50" required></textarea><br><br>

            <button type="submit">提交</button>
        </form>
    </section>

</main>
<footer>
    <p>JAVAEE self-introduction</p>
</footer>
<script>
    document.getElementById('contactform').addEventListener('submit', function(event) {
        event.preventDefault();
        alert('看来你对我感兴趣！我会尽快回复你。');
    });
</script>
</body>
</html>